package com.example.myapplication.network;

import com.example.myapplication.ui.home.Banner;
import com.example.myapplication.ui.home.Category;
import com.example.myapplication.ui.home.Course;

import java.util.List;

import retrofit2.Call;
import retrofit2.http.GET;
import retrofit2.http.Query;

public interface ApiService {
    @GET("banners")
    Call<List<Banner>> getBanners();

    @GET("categories")
    Call<List<Category>> getCategories();

    @GET("recommended-courses")
    Call<List<Course>> getRecommendedCourses();

    @GET("course-detail")
    Call<Course> getCourseDetail(@Query("id") String courseId);

    @GET("category-courses")
    Call<List<Course>> getCategoryCourses(@Query("categoryId") String categoryId);
}